package com.accenture.portal.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.accenture.portal.model.Article;


public interface ArticleMapper {
//	public List<Article> getUnreadArticle(@Param("user_id")Integer user_id,@Param("zer")Integer zer, @Param("j")Integer j);
	public List<Article> getUnreadArticle(Integer user_id,int zer, int j);
	public List<Article> getUnreadList(Integer user_id,Integer start,Integer end);
	public int getUnreadCount(int user_id);
	public List<Article> getAllArticle();
	public Article getContent(Integer article_id);
//	public void markAsRead(Integer user_id,Integer article_id);
	public void addArticle(Article article);
	public void deleteArticle(Integer article_id);
	public void editArticle(Article article);
//	public void editArticleStart(Article article);
//	public void editArticleThen(Article article);
	public int getTotalCount();
	public List<Article> getAllByPage(int start,int end);
	public Article getArticleById(Integer article_id);
}
